package cn.itheima.dao;

import cn.itheima.domain.Courier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by millions on 2017/7/3.
 */
public interface CourierRepositroy extends JpaRepository<Courier,Integer>,JpaSpecificationExecutor<Courier> {

    @Query("update Courier set deltag='1' where id = ?")
    @Modifying
    void updateDelTag(Integer id);
}
